home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 …ember: Reference Library / Dev.CD Dec 00 RL Disk 1.toast / mac / Technical Documentation / Develop / develop Issue 20 / develop Issue 20 code / Scripting the Finder.sea / Scripting the Finder / Zawphing / ReportError.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-11  |  712 b   |  30 lines  |  [TEXT/MMCC]

  1. /*================================================================================
  2.     ReportError.h
  3.     
  4.     ©1991 Greg Anderson
  5.     greggor@apple.com
  6.     
  7.     These routines are very convenient for debugging; they will convert
  8.     OSErrors from short negative numbers to human-readable strings in
  9.     Pascal format
  10. ================================================================================*/
  11. #ifndef __REPORTERROR__
  12. #define __REPORTERROR__
  13.  
  14. #ifndef __TYPES
  15. #include <Types.h>
  16. #endif
  17.  
  18. /*
  19. // Constants:
  20. */
  21. #define kReportErrorID    30303
  22.  
  23. /*
  24. // Prototypes for reportError.c
  25. */
  26. Boolean            FindResultCodeDescription( OSErr theErr, Str255 errorNameStr, Str255 errorDescStr );
  27. void            ReportError( Str255 errorMsg, OSErr theErr );
  28.  
  29. #endif
  30.